package user;

import util.Record;

public abstract class User {
	public static final int GOVERNMENT = 0;
	public static final int DOCTOR = 1;
	public static final int NURSE = 2;
	public static final int PATIENT = 3;
	protected String pNbr;
	protected String name;
	protected int type;
	
	public User(String pNbr, String name, int type){
		this.setpNbr(pNbr);
		this.setName(name);
		this.setType(type);
		
	}

	public void setpNbr(String pNbr) {
		this.pNbr = pNbr;
	}

	public String getpNbr() {
		return pNbr;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public void setType(int type) {
		this.type = type;
	}

	public int getType() {
		return type;
	}


	public abstract boolean controlRecordRead(Record rec);
	
	public abstract boolean controlWriteRecord(Record rec);

	public abstract boolean controlDeleteRecord(Record rec);

	public abstract boolean controlCreateDocument();
}
